package demo;

public class Thread01  extends Thread{

    @Override
    public void run() {
        //  线程体
        for (int i = 0; i < 20; i++) {
            System.out.println("== 我在听DJ == "+i);
        }
    }

    public static void main(String[] args) {
        //  主线程
        Thread01 t01 = new Thread01();
        t01.start();
        for (int i = 0; i < 20; i++) {
            System.out.println("== 我在敲代码 == "+i);
        }
    }
}
